package com.gsoe.problem.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 测验表
 * </p>
 *
 * @author xiaoma
 * @since 2024-10-27
 */
@Getter
@Setter
public class Test implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 测验名
     */
    private String testName;

    /**
     * 创建人id
     */

    private Long userId;

    /**
     * 创建人名称
     */
    private String userName;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 分数
     */
    private Integer score;

    /**
     * 状态 1、已加入 2、评测中 3、完成 4、失败
     */
    private Integer status;

    private Integer time;

    private Integer remainingCount;
}
